Skip to content

fix: image-to-gcode.py for modern numpy/tkinter#4021

Merged
andypugh merged 1 commit into
LinuxCNC:masterfrom
wucke13:dev/wucke13/fix-image-to-gcode-for-modern-numpy-and-tk
May 24, 2026
Merged

fix: image-to-gcode.py for modern numpy/tkinter#4021
andypugh merged 1 commit into
LinuxCNC:masterfrom
wucke13:dev/wucke13/fix-image-to-gcode-for-modern-numpy-and-tk

Conversation

@wucke13
Copy link
Copy Markdown
Contributor

@wucke13 wucke13 commented May 13, 2026

- Numpy renamed `numpy.core.Inf` -> `numpy.core.inf`.
  - However, `numpy.core` was also deprecated and renamed, hence it
    would be `numpy._core.inf`.
  - But really, `numpy.inf` does work too.
- Avoid closing the `tkinter._default_root`, it's not necessary anymore
  (probably since python/cpython#23897).
  Nowadays, there isn't even a `tkinter._default_root` per default.

Signed-off-by: wucke13 <wucke13+github@gmail.com>
@wucke13 wucke13 force-pushed the dev/wucke13/fix-image-to-gcode-for-modern-numpy-and-tk branch from 72d9ba2 to f80e312 Compare May 14, 2026 10:27
@andypugh andypugh merged commit 8ea36d3 into LinuxCNC:master May 24, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants